﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage_Admin.master" AutoEventWireup="true" CodeFile="RoleEdit.aspx.cs" Inherits="Admin_Account_RoleEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="Server">
    <a href="RoleList.aspx">角色管理</a><span>-新增</span>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <div class="ht-panel-edit">
        <table class="ht-edit-table">
            <tr>
                <th>角色名称：</th>
                <td>
                    <asp:TextBox ID="txt_RoleName" runat="server" CssClass="ht-textbox"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>角色编码：</th>
                <td>
                    <asp:TextBox ID="txt_RoleCode" runat="server" CssClass="ht-textbox"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>是否启用：</th>
                <td>
                    <asp:CheckBox ID="ch_Valid" runat="server" Checked="true" />
                </td>
            </tr>
            <tr>
                <th></th>
                <td>
                    <asp:LinkButton ID="btn_Modify" runat="server" Text="编辑" OnClick="btn_Modify_Click" CssClass="easyui-linkbutton" data-options="iconCls:'icon-edit'" />
                    <asp:LinkButton ID="btn_Save" runat="server" Text="保存" OnClick="btn_Save_Click" CssClass="easyui-linkbutton" data-options="iconCls:'icon-save'" />
                    <asp:LinkButton ID="btn_Back" runat="server" Text="返回" PostBackUrl="RoleList.aspx" CssClass="easyui-linkbutton" data-options="iconCls:'icon-back'" />
                </td>
            </tr>
        </table>
    </div>
    <div class="ht-panel-grid">
        <asp:Repeater ID="RepeaterList" runat="server" OnItemDataBound="RepeaterList_ItemDataBound">
            <HeaderTemplate>
                <table class="ht-grid" border="0" style="margin-top: 10px;">
                    <thead>
                        <tr>
                            <th>所属系统</th>
                            <th>父级</th>
                            <th>模块名称</th>
                            <%--<th>模块代码</th>--%>
                            <th>排序</th>
                            <%--<th>链接</th>--%>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td><%#Eval("SysNo").ToString()=="001"?"后台":"前台" %></td>
                    <td><%#Eval("ParentName") %></td>
                    <td><%#Eval("ModuleName") %></td>
                    <%--<td><%#Eval("ModuleCode") %></td>--%>
                    <td><%#Eval("OrderNo") %></td>
                    <%--<td><%#Eval("Href") %></td>--%>
                    <td>
                        <asp:HiddenField ID="hf_ModuleId" runat="server" Value='<%#Eval("ModuleId") %>' />
                        <asp:CheckBoxList ID="cbl_Operation" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
                        </asp:CheckBoxList>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Footer" runat="Server">
</asp:Content>

